package com.aizuda.boot.modules.business.contract.entity;

import com.aizuda.boot.modules.business.contract.entity.vo.ContractDTO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName(value = "employee_table_header", autoResultMap = true)
@Schema(description = "员工表头配置实体")
public class EmployeeTableHeaderEntity {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Integer id;

    @Schema(description = "员工ID")
    private Long employeeId;

    @Schema(description = "表头数组")
    private String headers;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;

    @Schema(description = "字段列表")
    @TableField(exist = false)
    private List<ContractDTO.ModuleDTO.FieldDTO>  fields;
}
